package co.gov.medellin.ssti.sub.common.util;

import javax.servlet.http.*;

//TODO: purge!
public class AutenticarUsuario extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8829709128321146436L;
	/*
	 * private static final String CONTENT_TYPE =
	 * "text/html; charset=windows-1252";
	 * 
	 * public void init(ServletConfig config) throws ServletException {
	 * super.init(config); }
	 * 
	 * public void doGet(HttpServletRequest request, HttpServletResponse
	 * response) throws ServletException, IOException { ConsultasComunes cc =
	 * new ConsultasComunes(); PrintWriter out = response.getWriter();
	 * out.println("<html>");
	 * out.println("<head><title>Sistema Unico Beneficios</title></head>");
	 * String strUser = "'pruebas'"; //en esta parte es donde se obtendria el
	 * usuario desde el portal if(cc.checkUser(strUser,"paoyer","paoyer")){
	 * String strGrupoUsuario = cc.getGrupoUsuario(strUser,"paoyer","paoyer");
	 * out.println("<frameset cols=\"30%,*\"> ");
	 * out.println("<frame src=\"components/menu.jsp?grupoUsuario="
	 * +strGrupoUsuario
	 * +"\" name=\"menu\" frameborder=\"0\" noresize scrolling=\"no\">");
	 * out.println(
	 * "<frame src=\"jsp/reportes/Consultas.jsp\" name=\"principal\" frameborder=\"0\"> "
	 * ); out.println("</frameset>"); }else { out.println(
	 * "<h2>Usuario no valido, contacte al administrador de la aplicacion</h2>"
	 * ); } out.println("</html>"); out.close(); }
	 */

}